package basic_practice_1026;

import java.util.Scanner;
/**
 * @author MemoryC
 * */

public class Main {

	public static void main(String[] args) {

		Scanner scanner=new Scanner(System.in);
		
		while(scanner.hasNext()) {
			
			int a=scanner.nextInt();
			int b=scanner.nextInt();
			int n=scanner.nextInt();
			
			String result="0.";
			a*=10;
			while(n>0) {
				int c=a/b;
				result+=c;
				a=(a%b)*10;
				n--;
			}
			System.out.println(result);
		}
		scanner.close();
    }
}